<form nz-form  [formGroup]="validateForm" (ngSubmit)="submitForm(validateForm.value)">
    <nz-form-item>
      <nz-form-label [nzSpan]="2" nzRequired>有效期</nz-form-label>
      <nz-form-control [nzSpan]="18">
            <ul class="monthBox">
                <li *ngFor="let item of yearList index as i" [ngClass]="{'curr':item.selected}" (click)="yearClick(item,i)">
                    {{item.value}}
                </li>
            </ul>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item>
      <nz-form-label [nzSpan]="2">有效期显示</nz-form-label>
      <nz-form-control [nzSpan]="8">
        <div>{{initDate}} ~ {{selectedDate}}</div>
      </nz-form-control>
    </nz-form-item>
    <nz-form-item style="text-align: center;">
      <nz-form-control [nzOffset]="7" [nzSpan]="12">
        <button nz-button nzType="primary">提交</button>
        <button nz-button (click)="resetForm($event)">重置</button>
      </nz-form-control>
    </nz-form-item>
  </form>
